{% if is_granted('ROLE_USER') %}
    {% set first = first|default(false) %}

    {% set url_parameters = {'id': id } %}
    {% if parent is not null %}
        {% set url_parameters = url_parameters|merge({'parentId': parent.id}) %}
    {% endif %}

    {% include "FOSCommentBundle:Thread:comment_new_content.html.twig" %}

{% else %}
    <div class="login-comment">
        <a href="javascript:void(0);" onclick="mostrarlogin();">Identificarme para comentar</a>
    </div>
{% endif %}